import request from '@/utils/request'

// 查询火车图标列表
export function listTrain_icon(query) {
  return request({
    url: '/system/train_icon/list',
    method: 'get',
    params: query
  })
}

// 查询火车图标详细
export function getTrain_icon(id) {
  return request({
    url: '/system/train_icon/' + id,
    method: 'get'
  })
}

// 新增火车图标
export function addTrain_icon(data) {
  return request({
    url: '/system/train_icon',
    method: 'post',
    data: data
  })
}

// 修改火车图标
export function updateTrain_icon(data) {
  return request({
    url: '/system/train_icon',
    method: 'put',
    data: data
  })
}

// 删除火车图标
export function delTrain_icon(id) {
  return request({
    url: '/system/train_icon/' + id,
    method: 'delete'
  })
}


// 根据用户获取火车图标详细信息
export function getAll() {
  return request({
    url: '/system/train_icon/getAll',
    method: 'get'
  })
}
